package com.job.ZhangMeng.Homework0714;

import java.util.UUID;

public class TestItem {

    public static void main(String[] args) {
        for (int i = 1; i <= 5; i++) {
            Item item=new Item(UUID.randomUUID().toString()+"="+i);
            item=null;
            System.gc();    //此时自动调用重写的finalize()方法
        }
    }

}
